package com.yr.ryjk.expert.dao;

import java.util.List;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Select;

import com.yr.ryjk.expert.entity.ExpertType;

public interface ExpertTypeMapper {
    int deleteByPrimaryKey(String id);

    int insert(ExpertType record);

    int insertSelective(ExpertType record);

    ExpertType selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(ExpertType record);

    int updateByPrimaryKey(ExpertType record);
    
	@Select("select * from expert_type limit #{0},#{1}")
	@ResultMap("BaseResultMap")
	List<ExpertType> selectAll(int pageNo, int pageSize);
	
	@Select("select count(1) from expert_type")
	@ResultType(Integer.class)
	int selectCount();

	@Select("select * from expert_type")
	@ResultMap("BaseResultMap")
	List<ExpertType> selectAllExpertType();

	@Delete("delete from expert_type where find_in_set(id,#{0})")
	void deleteByIds(String ids);
}